package com.three.box.base

import android.app.Application
import com.hjq.toast.Toaster
import com.jiongbull.jlog.JLog
import com.tencent.mmkv.MMKV
import kotlin.properties.Delegates

class BoxApp: Application() {
    override fun onCreate() {
        super.onCreate()
        instance = this

        JLog.init(this)
        MMKV.initialize(this)
        // 初始化 Toast 框架
        Toaster.init(this);
    }

    companion object {
        private var instance: BoxApp by Delegates.notNull()
        @JvmStatic
        fun instance() = instance
    }
}